package com.common.lib.bean

import java.io.Serializable

class VideoBean : Serializable {

    var id: Int = 0
    var vid: Int = 0
    var url: String? = ""
    var name: String? = ""
    var cover: String? = ""
    var drillid: Int = 0
    var brandid: Int = 0
    var star: Int = 0
    var iscoll: Boolean? = false
    var describe: String? = ""
    var vtypeid: Int = 0
    var longtime: String? = ""
    var Fitman: String? = ""
    var Train: String? = ""

    var addtime: Long = 0
    var datetime: String? = ""
    var kcal: Int = 0
    var browse: Int = 0
    var isvip: Int = 0
    var viptime: Int = 0
    var type: Int = 0
    var langid: Int = 0
    var sort: Int = 0
    var illness: Int = 0
    var place: String? = ""
    var drillname: String? = ""
    var title: String? = ""
    var collect: Boolean? = false

    var vburst: ArrayList<VideoSectionBean>? = null

    var alltime: Int = 0

    fun getVideoId(): Int {
        if (vid == 0) {
            return id
        }
        return vid
    }

    override fun toString(): String {
        return "VideoBean(id=$id, vid=$vid, url=$url, name=$name, cover=$cover, drillid=$drillid, brandid=$brandid, star=$star, iscoll=$iscoll, describe=$describe, vtypeid=$vtypeid, longtime=$longtime, Fitman=$Fitman, Train=$Train, addtime=$addtime, datetime=$datetime, kcal=$kcal, browse=$browse, isvip=$isvip, viptime=$viptime, type=$type, langid=$langid, sort=$sort, illness=$illness, place=$place, drillname=$drillname, title=$title, collect=$collect, vburst=$vburst, alltime=$alltime)"
    }


}